package com.iyimo.util{
	import flash.display.DisplayObject;
	import flash.display.MovieClip;

	public class IUtil{
		public static function stopMovieClip(m:MovieClip):void{
			m.gotoAndStop(1);
			var n:int = m.numChildren;
			while (--n > 0){
				var c:DisplayObject = m.getChildAt(n);
				if (c is MovieClip)
					stopMovieClip(c as MovieClip);
			}
		}
	}
}